package org.book.controller;

import com.alibaba.fastjson.JSONObject;
import org.book.common.JsonResult;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


@RestController
public class Test {


    @RequestMapping("/test/{id}")
    public JsonResult test(@PathVariable("id") String id){
        JSONObject jsonObject= new JSONObject();
        jsonObject.put("id",id);
        return JsonResult.renderSuccess(jsonObject);
    }
}
